import pika

connection = pika.BlockingConnection(
    pika.ConnectionParameters(host='ek.hongen.com',
                              credentials=pika.credentials.PlainCredentials(username="hongen", password="hongen"))
)
channel = connection.channel()
# channel.exchange_declare(exchange='camera_status', exchange_type='fanout')
channel.queue_declare(queue='camera_status')


def callback(ch, method, properties, body):
    print(" [x] Received %r" % body)


channel.basic_consume(
    queue='camera_status', on_message_callback=callback, auto_ack=True)

print(' [*] Waiting for messages. To exit press CTRL+C')
channel.start_consuming()